package cmcm.com.mutildepend;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;

public class ImplicyService extends Service {
    public static final String ACTION = BuildConfig.APPLICATION_ID+".service.load";

    public ImplicyService() {
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        onHandleIntent(intent);

        return super.onStartCommand(intent, flags, startId);
    }

    private void onHandleIntent(Intent intent) {
        if (intent==null){
            return;
        }
        final String action = intent.getAction();
        Log.e("suj",action);
    }

    public static  void start_IMPLICYSERVICE(Context context){
        if (context == null){
            return;
        }
        Intent intent = new Intent();
        intent.setAction(ACTION);
        intent.setClass(context,ImplicyService.class);
        context.startService(intent);
    }



    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }
}
